import request from "@/utils/request";

// 查询项目列表k KqProject
export function getKqProjectsList(query) {
  return request({
    url: "/work/project/",
    method: "get",
    params: query
  });
}

// 查询项目详细
export function getKqProject(id) {
  return request({
    url: "/work/project/" + id + "/",
    method: "get"
  });
}

// 新增项目
export function addKqProject(data) {
  return request({
    url: "/work/project/",
    method: "post",
    data: data
  });
}
// 删除
export function delKqProject(id) {
  return request({
    url: "/work/project/" + id,
    method: "delete"
  });
}

// 修改项目
export function updateKqProject(data) {
  return request({
    url: "/work/project/" + data.id + "/",
    method: "put",
    data: data
  });
}
